package org.springframework.security.samples.entity;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * Created by lzx on 16/7/14.
 */
public interface UserJpaRepository extends JpaRepository<UserInfo,Long>{

    Optional<UserInfo> findByUsername(String username);
}
